<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class AnswerSurveySubject extends Model
{
	
    protected $table = 'answer_survey_subjects';

    public function answer()
    {
        return $this->belongsTo(AnswerSurvey::class, 'answer_id');
    }

    public function option()
    {
        return $this->hasMany(AnswerSurveyOption::class, 'subject_id');
    }
    
}
